@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .header-box {
    /* @apply p-[10px] h-[45px] mr-[6px] flex items-center cursor-pointer text-[#586799] text-[16px] hover:bg-[#cde4ff] hover:rounded-[6px] transform duration-500; */
    @apply p-[10px] h-[45px] mr-[6px] flex items-center cursor-pointer text-[#586799] text-[16px];
  }
  .room-status-button {
    @apply w-[90px] h-[32px] border-[1px] border-[#e8e8e8]  mr-[10px] rounded-[4px] flex justify-center items-center text-[#2d3347] hover:border-[#0079ff]  hover:text-[#0079ff]  cursor-pointer;
  }
  .stay-form-title {
    @apply inline-block w-[80px] flex-shrink-0 mr-[16px] text-right;
  }

  .one-ellipsis {
    /*需要固定该行的width*/
    @apply whitespace-nowrap text-ellipsis overflow-hidden;
  }
}

/* @apply inline-block w-[5px] h-[5px] bg-[#ff3636] */
.required {
  position: relative;
}
.required::before {
  display: inline-block;
  color: #ff3636;
  content: '*';
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
}
.shadow::after {
  position: absolute;
  top: 0;
  bottom: -1px;
  right: 0;
  width: 30px;
  transform: translate(100%);
  transition: box-shadow 0.3s;
  content: '';
  pointer-events: none;
  box-shadow: inset 10px 0 8px -8px #00000026;
}

.ant-message .ant-message-notice > .ant-message-notice-content > .ant-message-custom-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blueTableThead .ant-table-thead th {
  background: #f0f7ff !important;
  font-size: 14px !important;
  color: #666666 !important;
}
.ant-card-bordered {
  height: 100%;
}
.ant-modal-header > .ant-modal-title {
  font-size: 18px;
  color: #2d3347;
  font-weight: bold;
}
.ant-modal-footer {
  text-align: center !important;
  padding: 20px 16px !important;
}
.ant-modal-footer > .ant-btn {
  border-radius: 2px;
  height: 32px;
  font-size: 16px;
  margin: 0 15px;
}
.ant-modal-footer > .ant-btn:first-child {
  letter-spacing: 0 !important;
  color: #586799;
  border: solid 1px #586799;
}
.main_btn {
  letter-spacing: 0 !important;
  color: #586799 !important;
  border: solid 1px #586799 !important;
}
.ant-btn {
  display: inline-flex !important;
  align-items: center !important;
}

::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 8px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 8px;
}
::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  cursor: pointer;
  border-radius: 5px;
  /* -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); */
  /* background: #c6c6c6; */
  background: #1b1b1b;
}
::-webkit-scrollbar-thumb:hover {
  /*滚动条里面小方块*/
  background: #999999;
}
::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  cursor: pointer;
  /* -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); */
  /* background: #fff; */
  background: #0a0a0a;
}

.ant-form-item-label > label::after {
  content: '' !important;
}

.drawer-title {
  font-size: 16px;
  padding-left: 10px;
  height: 16px;
  line-height: 16px;
  background-color: rgba(255, 255, 255, 0);
  box-sizing: border-box;
  border-width: 4px;
  border-style: solid;
  border-color: rgba(0, 112, 255, 1);
  border-top: 0px;
  border-right: 0px;
  border-bottom: 0px;
  border-radius: 0px;
  border-top-left-radius: 0px;
  border-bottom-left-radius: 0px;
}

.checkedAll {
  width: 30px;
  height: 20px;
  line-height: 16px;
  text-align: center;
  background-color: #919dba;
  border-radius: 2px;
  color: #fff;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #919dba;
}
.cancelAll {
  width: 30px;
  height: 20px;
  line-height: 16px;
  text-align: center;
  border-radius: 2px;
  color: #919dba;
  font-weight: 500;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid #919dba;
}

.title-dot {
  width: 14px;
  height: 14px;
  background: #ff9f00;
  border-radius: 50%;
}
.title-label {
  font-family: Microsoft YaHei;
  font-weight: 400;
  font-size: 20px;
  color: #e6e6e6;
  margin-left: 12px;
}
.ant-empty-description {
  color: #e6e6e6 !important;
}
.ant-table-thead {
  background-color: #1b1b1b !important;
}
.ant-table-thead .ant-table-cell {
  background-color: transparent !important;
  border-bottom: none !important;
}
.ant-table-thead .ant-table-cell::before {
  /* width: 0px !important; */
}
.ant-table-tbody > tr:last-child > td {
  border-bottom: none !important;
}

.ant-drawer-header {
  background-color: #1b1b1b !important;
  border-bottom: 1px solid #323232 !important;
}
.ant-drawer-title {
  color: #e6e6e6 !important;
}
.ant-drawer-body {
  background-color: #1b1b1b !important;
}

.ant-picker .ant-picker-input > input {
  color: #e6e6e6 !important;
}

.ant-table-filter-dropdown > .ant-dropdown-menu {
  background-color: #242424 !important;
}

.ant-table-filter-dropdown > .ant-dropdown-menu > .ant-dropdown-menu-item-selected {
  color: red !important;
  background-color: #586799 !important;
}
.ant-badge .ant-badge-count {
  box-shadow: none !important;
}
.ant-menu-item {
  padding-left: 0 !important;
}

.ant-picker .ant-picker-separator,
.ant-picker-suffix {
  color: #fff !important;
}
.ant-picker-suffix:hover {
  color: #ccc !important;
}

.ant-popover .ant-popover-content {
  border-radius: 8px;
  background-color: #242424 !important;
}

.ant-popover .ant-popover-content .ant-popover-title {
  color: white;
}

.ant-popover .ant-popover-content .ant-popover-inner {
  color: white !important;
  background-color: #242424 !important;
}
